package com.lfy.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lfy.auth.domain.entity.UserDetailEntity;
import com.lfy.auth.domain.entity.UserEntity;
import com.lfy.auth.domain.req.ChangeNameReq;
import com.lfy.auth.domain.req.ChangeSignatureReq;
import com.lfy.auth.domain.resp.FindFriendResp;
import com.lfy.common.result.R;

/**
* @author 吕飞扬
* @description 针对表【user_detail】的数据库操作Service
* @createDate 2023-10-19 19:16:42
*/
public interface UserDetailService extends IService<UserDetailEntity> {

    /**
     * 更改名字
     * @param user 登录用户
     * @param req name
     * @return
     */
    R<Void> changeName(UserEntity user, ChangeNameReq req);

    /**
     * 更改签名
     * @param user 登录用户
     * @param req 签名
     * @return
     */
    R<Void> changeSignature(UserEntity user, ChangeSignatureReq req);


    R<FindFriendResp> findFriend(String sign);
}
